xen: retrieve reserved pages on populate_physmap
authorPenny Zheng <Penny.Zheng@arm.com>
Tue, 6 Sep 2022 07:39:19 +0000 (15:39 +0800)
committerJulien Grall <jgrall@amazon.com>
Tue, 6 Sep 2022 17:03:07 +0000 (18:03 +0100)
commit172015009a6acc20357a2698800e13058ba1d3db
treeaf674f60186df8734c88283caa8352d9f56ff066
parent142578a5061ad2ce4fe789c1524e2eb5cb102b0e
xen: retrieve reserved pages on populate_physmap

When a static domain populates memory through populate_physmap at runtime,
it shall retrieve reserved pages from resv_page_list to make sure that
domain's RAM is still restricted in statically configured memory regions.
This commit also introduces a new helper acquire_reserved_page to make it work.

Signed-off-by: Penny Zheng <penny.zheng@arm.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
xen/common/memory.c
xen/common/page_alloc.c
xen/include/xen/mm.h